Skip to main content

JPEGQuality

Type

property

Summary

Specifies the quality level of JPEG images created by LiveCode.

Syntax

set the JPEGQuality to <qualityNumber>

Description

Use the JPEGQuality property to control the file size and sharpness of JPEG files created with the export command.

JPEG compression is inherently lossy, which means some detail is always lost when an image is compressed using this method. The JPEGQuality property controls how much detail is lost. If the JPEGQuality is 100, as much detail as possible is retained.

In general, the lower the quality setting, the smaller the file size. Photographic images with naturally fuzzy edges generally do not suffer much visible loss of quality with a JPEGQuality setting of 50 or higher. Different images may require different levels of this property to achieve acceptable results.

The JPEGQuality setting is used when a file is exported in JPEG format using the export command, and when an image whose paintCompression property is "jpeg" is changed.

Examples

set the JPEGQuality to 40
set the JPEGQuality to the JPEGQuality - 10

object: image

property: paintCompression

command: export, import

function: files

glossary: property, JPEG, command

keyword: file, image

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?